|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPER.rover.TakePanoramaAction
Takes panoramic images.
Field Summary | |
static int |
FOV_HEIGHT
|
static int |
FOV_WIDTH
|
Constructor Summary | |
TakePanoramaAction()
Creates new TakePanoramaAction from angles -50 to 0 at 320x240 |
|
TakePanoramaAction(int lowAng,
int highAng,
int width,
int height)
Creates a new TakePanoramaAction with options for the tilt angle and image size. |
Method Summary | |
boolean |
doAction(Rover r)
Takes a panorama. |
java.awt.image.BufferedImage |
getImage()
Returns the panoramic image taken by the action. |
long |
getImageUpdateTime()
Lets you know when the last image was taken by this action. |
java.awt.image.BufferedImage |
getRecentImage()
Returns the most recent image taken by this Action. |
int |
getReturnValue()
The return value of the Action. |
java.lang.String |
getShortSummary()
Provides a shortened version of the summary returned by getSummary. |
java.lang.String |
getSummary()
Provides a textual explanation of the Action, such as "turn 90 degrees" |
int |
getTime()
How long the action will take, in milliseconds. |
int |
getTimeRemaining()
How much time until the action finishes (in milliseconds), if it has already started. |
long |
ImagesDone()
|
boolean |
isCompleted()
Whether the action has completed. |
boolean |
isSuccess()
Whether the action completed successfully. |
void |
kill()
Emergency stop - end the action immediately, if it's running. |
long |
lastTimeImageUpdated()
Returns the time (in ms) when the panoramic image was last updated with a new picture from the rover. |
boolean |
setAngles(int lowAng,
int highAng)
Sets the low and high angles to be used for the panorama. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FOV_WIDTH
public static final int FOV_HEIGHT
Constructor Detail |
public TakePanoramaAction()
public TakePanoramaAction(int lowAng, int highAng, int width, int height)
lowAng
- The minimum tilt angle that the picture includes.highAng
- The maximum tilt angle that the picture includes.width
- The width in pixels of the target image.height
- The height in pixels of the target image.Method Detail |
public boolean setAngles(int lowAng, int highAng)
public java.awt.image.BufferedImage getImage()
This method is included for backwards compatibility. getRecentImage
performs the same function.
getRecentImage()
public boolean isSuccess()
Action
isSuccess
in interface Action
public boolean doAction(Rover r)
doAction
in interface Action
public java.lang.String getSummary()
Action
getSummary
in interface Action
public int getReturnValue()
Action
getReturnValue
in interface Action
RoverState
,
ActionConstants
public int getTime()
Action
getTime
in interface Action
public java.lang.String getShortSummary()
Action
getShortSummary
in interface Action
public boolean isCompleted()
Action
isCompleted
in interface Action
public void kill()
Action
kill
in interface Action
public int getTimeRemaining()
Action
getTimeRemaining
in interface Action
public long lastTimeImageUpdated()
This method is here for backwards compatibility. New programs should use
getImageUpdateTime
.
getImageUpdateTime()
public long ImagesDone()
public long getImageUpdateTime()
Action
getImageUpdateTime
in interface Action
public java.awt.image.BufferedImage getRecentImage()
Action
getRecentImage
in interface Action
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |